{% extends "base.html" %}
{% block title %}{{block.super}} - News - List {% endblock %}
{% block content %}
<div>
 <h2>News - List </h2>
 {% for news_object in news_set%}
 <div>
  id: {{news_object.id}}<br>
title: {{news_object.title}}<br>
description: {{news_object.description}}<br>
picture: {{news_object.picture}}<br>
price: {{news_object.price}}<br>
created: {{news_object.created}}<br>
modified: {{news_object.modified}}<br>

  Links are here, uncomment them<br />
  {% comment %}
  <a href="{% url fragrances:news_view news_object.id %}">link to self</a><br />
  <a href="{{news_object.get_absolute_url}}">{{news_object}}</a>
  {% endcomment %}
 </div>
 {% empty %}
 <div>No News at the moment</div>
 {% endfor %}
</div>

<div>
 Links are here, uncomment them<br />
 {% comment %}
 <a href="{% url fragrances:news_list %}">All {{'News'|pluralize}}</a><br />
 <a href="{% url fragrances:news_view news_object.id %}">link to self</a><br />
 <a href="{{news_object.get_absolute_url}}">{{news_object}}</a><br />
 <a href="{% url fragrances:news_edit news_object.id %}">edit this</a><br />
 <a href="{% url fragrances:news_create %}">Add new News</a><br />
 {% endcomment %}
</div>
{% endblock content %}